package file;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class FileOut {

	public static void main(String[] args) throws IOException {
		File file=new File("D:"+File.separator+"settings.xml");
		if(file.isFile()){
			FileInputStream fis=new FileInputStream(file);
			/*int ii=fis.available();
			int i=fis.read(new byte[ii]);*/
			FileOutputStream fos=new FileOutputStream("D:"+File.separator+"yyy.xml");
			//fos.write("天天".getBytes());
			int b=0;
			while((b=fis.read())!=-1){
				fos.write(b);
			}
		}
	}

}
